package com.albaba.designpattern.mediator.text_002;

/**
 * @Description: 抽象同事类
 * @Author zx
 * @Date 2025/3/3 16:43
 * @Version 1.0
 */
public abstract class Person {

    protected String name;

    // 持有中介者的引用
    protected Mediator mediator;

    public Person(String name, Mediator mediator) {
        this.name = name;
        this.mediator = mediator;
    }
}
